#pragma once
class XString
{
public:
	XString(void);
	~XString(void);

	XString(const char* str);

public:
	inline const char* c_str() const {return m_str;}
	inline int length() const {return m_len;}

	void Append(const char* buf, const int len);

private:
	void init(const char* str, const int len=0);

private:
	char* m_str;
	int   m_len;
};

